﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace aDream
{
    class Staff
    {
        String name;
        String occupation;
        LinkedList<Rental> rentals = new LinkedList<Rental>();



        public String Name
        {
            get { return name; }
            set { name = value; }
        }

        public String Occupation
        {
            get { return occupation; }
            set { occupation = value; }
        }

        public Rental rental(int id)
        {
            foreach (Rental rental in rentals)
                if (rental.matches(id))
                    return rental;
            return null;
        }


    }
}
